package com.yuntu.service;

import com.yuntu.dao.PageUtil;
import com.yuntu.pojo.Peitems;

import java.util.List;

public interface PeitemsService {
    /**
     * 分页
     * @param pageUtil
     * @throws Exception
     */
    void getPageAll(PageUtil<Peitems> pageUtil)throws Exception;
    /**
     * 根据id查单个
     */
    Peitems getAllById(int itemid)throws Exception;
    /**
     * 添加
     */
    boolean insert (Peitems peitems)throws Exception;
    /**
     * 修改
     */
    boolean peitemsUpd(Peitems peitems)throws Exception;
    /**
     * 删除
     */
    boolean deleteById(int itemid)throws Exception;
    /**
     * 重复查询
     */
    Peitems selectNotRepeat(String itemname)throws Exception;
}
